import request from "@/utils/request";

// 学期列表
export function projectList(params) {
  return request({
    url: "/project/semester/config/list",
    method: "get",
    params,
  });
}
// 没有权限
export function getSemesterList(params) {
  return request({
    url: "/larger/screen/getSemesterList",
    method: "get",
    params,
  });
}
// 新增
export function projectAdd(data) {
  return request({
    url: "/project/semester/config",
    method: "post",
    data,
  });
}
// 编辑
export function projectPut(data) {
  return request({
    url: `/project/semester/config`,
    method: "put",
    data,
  });
}
// 删除
export function projectDele(id) {
  return request({
    url: `/project/semester/config/${id}`,
    method: "delete",
  });
}
// 详情
export function projectId(id) {
  return request({
    url: `/project/semester/config/${id}`,
    method: "get",
  });
}
// 获取学院
export function getStudentTree(data) {
  return request({
    url: `/project/prouser/getStudentTreeByPracticeTaskId`,
    method: "post",
    data,
  });
}

// 报名情况
export function enrollCount(data) {
  return request({
    url: `/project/apply/applyInfo`,
    method: "get",
    params: data,
  });
}

// 实践课程数据字典管理
// 列表
export function typeCongfigList(params) {
  return request({
    url: "/project/practice/type/config/list",
    method: "get",
    params,
  });
}
// 新增
export function typeCongfigAdd(data) {
  return request({
    url: "/project/practice/type/config",
    method: "post",
    data,
  });
}
// 编辑
export function typeCongfigPut(data) {
  return request({
    url: `/project/practice/type/config`,
    method: "put",
    data,
  });
}
// 删除
export function typeCongfigDele(id) {
  return request({
    url: `/project/practice/type/config/${id}`,
    method: "delete",
  });
}
